<?php
//日志记录
function write_log($arr,$name='log'){
    $log = new \mylog($name);
    $log->record($arr);
}